package study.optional.公共类;


import java.util.Optional;

/**
 * @Author 刘伟涛
 * @Date 2023/6/30 15:09
 **/
public class User{
    Optional<Car> car;
    public User(){

    }
    public User(Optional<Car> car){
        this.car = car;
    }
    public Optional<Car> getCar(){
        return car;
    }
}
